package com.bysj.lms.service;

import com.bysj.lms.pojo.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bysj.lms.pojo.entity.Role;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaojiakai
 * @since 2022-02-04
 */
public interface IPermissionService extends IService<Permission> {

    PageInfo findByPage(String title, int page, int count);

    //根据角色id查询权限
    List<Permission> getByRoleId(List<Role> roles);
}
